package com.shuoyue.ycgk.ui.course.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseViewHolder;
import com.shuoyue.ycgk.R;
import com.shuoyue.ycgk.base.baseadapter.AppBaseQuickAdapter;
import com.shuoyue.ycgk.entity.CourseData;

import java.util.List;

public class CourseDataAdapter extends AppBaseQuickAdapter<CourseData> {

    public CourseDataAdapter(@Nullable List<CourseData> data) {
        super(R.layout.item_course_data, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CourseData item) {
        helper.setText(R.id.name, item.getName());
    }
}
